home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / hardware / msec_12 / timer.h < prev    next >
C/C++ Source or Header  |  1991-12-11  |  501b  |  17 lines

  1. /* timer.h
  2.  * Include file defining the timer routines.
  3.  * Include this file in any program using them.
  4.  */
  5.  
  6. /*Calculate time elapsed (in milliseconds) between Start and Stop*/
  7. unsigned long    elapsedtime(long start, long stop);
  8.  
  9. /*Reprogram the timer chip to allow 1 millisecond resolution*/
  10. extern void    initializetimer(void);
  11.  
  12. /*Restore the timer chip to its normal state*/
  13. extern void    restoretimer(void);
  14.  
  15. /*Read the timer with 1 millisecond resolution*/
  16. extern long    readtimer(void);
  17.